﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
using System.ServiceProcess;
using System.Diagnostics;

namespace FlexminHost
{
	enum RunMode
	{
		Service,
		Application
	}

	class Program 
	{
		static void Main(string[] args)
		{			
#if DEBUG
			Application.EnableVisualStyles();
			FlexminService service = new FlexminService(RunMode.Application);
			service.AppplicationStart();
			Application.Run();
			service.ApplicationStop();
#else
			ServiceBase.Run(new FlexminService(RunMode.Service)); 
#endif
		}		
	}
}
